import request from '/@/utils/request';

export function getPowerSubitem() {
  return request({
    url: '/admin/dict/type/energy_type',
    method: 'get', 
  })
} 

//获取能耗配置部门列表
export function deptConfigData(query,str0) {
  return request({
    url: `/bum/${str0}/tree?energyType=` + query,
    method: 'get'
  })
}

// 能耗对比查询
export function deptCompareByChart(query, str0) {
  return request({
    url: `/bum/eccontrast/${str0}`,
    method: 'get',
    params: query
  })
}
 

 